package com.rain.web.orders;


import com.rain.feign.orders.api.OrderFeign;
import com.rain.service.orders.OrdersService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.rain.base.BaseController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wu
 * @since 2021-04-04
 */
@RestController
@RequestMapping("/orders")
@Api(tags = "订单", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class OrdersController extends BaseController implements OrderFeign {

    @Autowired
    private OrdersService ordersService;


    @Override
    @GetMapping("/saveOrder")
    @ApiOperation(value = "新增订单")
    public Boolean saveOrder() {
        return ordersService.saveOrder();
    }
}

